﻿<%@ Page Language="c#" CodeBehind="SearchCustomer.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.UserControls.EV.SearchCustomer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>SearchCustomer</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <base target="_self" />
    <link href="../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../css/style_fu.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        function OnSubmit() {
            var value = document.getElementById("lstboxResult").value;
            if (value == null || value == "") {
                alert("Please select a customer!");
            }
            else {
                window.returnValue = value;
                window.close();
            }
        }
        function OnClose() {
            if (confirm("You are about to close the window!\n\rAre you sure?")) {
                window.close();
            }
        }
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <h3 class="ev-header-section">
        &nbsp;Search Customer Information (搜索客户信息)</h3>
    <table cellspacing="0" cellpadding="0" width="100%">
        <tr class="ev-row2">
            <td class="title" style="width: 120px;">
                <asp:Label ID="lblCustomerName" runat="server">Customer Name:<br />客户名</asp:Label>
            </td>
            <td class="val">
                <asp:Label ID="lblCustomerNameCalue" runat="server"></asp:Label>
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" style="width: 120px;">
                <asp:Label ID="lblResult" runat="server">Search Result:<br />搜索结果</asp:Label>
            </td>
            <td class="val">
                <asp:ListBox ID="lstboxResult" runat="server" Height="250px" Width="250"></asp:ListBox>
            </td>
        </tr>
        <tr class="ev-row2">
            <td colspan="2" class="padding5 ac">
                <asp:ResourceButton ID="btnSubmit" runat="server" Text="Submit" ToolTip="SubmitTips"
                    CssClass="btn" />
                <asp:ResourceButton ID="ibtnClose" runat="server" Text="Close" ToolTip="CloseTips"
                    CssClass="btn" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
